package com.buba.pojo.record;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 药品记录表
 * </p>
 *
 * @author testjava
 * @since 2022-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="DrugRecord对象", description="药品记录表")
public class DrugRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增id")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Integer id;

    @ApiModelProperty(value = "药品id")
    private Integer drugId;

    @ApiModelProperty(value = "就诊人id")
    private Integer patientId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "流水号")
    private String serialNumber;

    @ApiModelProperty(value = "使用数量")
    private Integer useNumber;

    @ApiModelProperty(value = "总价")
    private BigDecimal price;

    @ApiModelProperty(value = "住院人id")
    private String hospitalMark;

    @ApiModelProperty(value = "门诊id")
    private Integer outpatientId;

    @ApiModelProperty(value = "删除标志(0正常 1删除)")
    private String deleteFlag;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "医生id")
    private Integer doctorId;

    @ApiModelProperty(value = "院区id")
    private Integer campusId;




}
